package excel.a;
public class q {
    private String playerName;

    public q(String playerName) {
        this.playerName = playerName;
    }

    public q() {
        this.playerName ="player";
    }

    public boolean a(String keyName, int param){
       if("摸牌".equals(keyName)){
           System.out.println(playerName+"摸牌，参数="+param);
           return true;
       }
       return false;
   }

   public boolean k(String keyName){
       System.out.println(playerName+"发动技能["+keyName+"]");
       return true;
   }

    public boolean a(String keyName, q player2){
        System.out.println(playerName+"对"+player2.playerName+"发动技能["+keyName+"]");
        return true;
    }

    public boolean a(String keyName, q player2, int param){
        System.out.println(playerName+"对"+player2.playerName+"发动技能["+keyName+"]"+",参数="+param);
        if("造成伤害".equals(keyName)){
            System.out.println(playerName+"对"+player2.playerName+"造成"+param+"点伤害");
        }
        return true;
    }

    @Override
    public String toString() {
        return "q{" +
                "playerName='" + playerName + '\'' +
                '}';
    }
}
